package Bean;

import Utils.XmlReplace;

public class TopicBean{
	private String TopicId;
	private String TopicName;
	private String CatId;
	private String Thumbnail;
	private String DatePublished;
	public String getCatId() {
		return CatId;
	}
	public void setCatId(String catId) {
		CatId = catId;
	}
	public String getDatePublished() {
		return DatePublished;
	}
	public void setDatePublished(String datePublished) {
		DatePublished = datePublished;
	}
	public String getThumbnail() {
		return Thumbnail;
	}
	public void setThumbnail(String thumbnail) {
		Thumbnail = thumbnail;
	}
	public String getTopicId() {
		return TopicId;
	}
	public void setTopicId(String topicId) {
		TopicId = topicId;
	}
	public String getTopicName() {
		return TopicName;
	}
	public void setTopicName(String topicName) {
		TopicName = topicName;
	}
	public String makeXML(){
		return "<topic id=\""+TopicId+"\" catid=\""+XmlReplace.escape(CatId)+"\" name=\""+XmlReplace.escape(TopicName)+"\" " +
				"thumbnail=\""+Thumbnail+"\" date=\""+XmlReplace.escape(DatePublished)+"\"/>";
	}
}